package com.lnu.information;

/**
 * @author : jian.zhang-2
 * @description:
 * @date : Create in 2:03 PM 2022/3/31
 * @modified By :
 */
public class Car {

    private Integer speed;

    private String name;

    public Car() {
    }

    public Car(Integer speed, String name) {
        this.speed = speed;
        this.name = name;
    }

    public void show() {
        System.out.println("speed = " + this.getSpeed() + ", name = " + this.getName());
    }

    public Integer getSpeed() {
        return speed;
    }

    public void setSpeed(Integer speed) {
        this.speed = speed;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
